package com.fmdj.customer.service.impl;

import cn.hutool.core.map.MapUtil;
import com.fmdj.common.util.CommonResult;
import com.fmdj.customer.controller.form.ReceiveBillMessageForm;
import com.fmdj.customer.feign.SnmServiceApi;
import com.fmdj.customer.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class receiveBillMessageImpl implements MessageService {

    @Autowired
    private SnmServiceApi snmServiceApi;

    @Override
    public String receiveBillMessage(ReceiveBillMessageForm form) {
        CommonResult r = snmServiceApi.receiveBillMessage(form);
        String msg = MapUtil.getStr(r, CommonResult.RETURN_RESULT);
        return msg;
    }
}
